<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <button>跳转</button>

    <script>
        let a = "张三";
        let b = 22;
        let q = 213;
        let pp =123123;
        let btn = document.querySelector("button")
        btn.onclick = function () {
            //页面传值  本质上是在地址上进行字符串的抽离
            //?后面的浏览器不会把他当作地址
            // window.open("./65页面接受.html?name="+a+"&age="+b,"_self")
            window.open(`./65页面接收.html?name=${a}&age=${b}&cs=${q}&pp=${pp}`, "_self")
            // window.open("./65页面接受.html","_self")
            // location.href
            // location.assign()
        }

    </script>
</body>

</html>